.class public Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;
.super Landroid/widget/BaseExpandableListAdapter;
.source "DateSortedExpandableListAdapter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter$MyDataSetObserver;,
        Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter$ChangeObserver;
    }
.end annotation


# instance fields
.field private mContext:Landroid/content/Context;

.field private mCursor:Landroid/database/Cursor;

.field private mDateIndex:I

.field private mDateSorter:Landroid/webkit/DateSorter;

.field private mIdIndex:I

.field private mItemMap:[I

.field private mNumberOfBins:I

.field private mObservers:Ljava/util/Vector;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Vector",
            "<",
            "Landroid/database/DataSetObserver;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/database/Cursor;I)V
    .registers 6
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "cursor"    # Landroid/database/Cursor;
    .param p3, "dateIndex"    # I

    .prologue
    .line 85
    invoke-direct {p0}, Landroid/widget/BaseExpandableListAdapter;-><init>()V

    .line 86
    iput-object p1, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mContext:Landroid/content/Context;

    .line 87
    new-instance v0, Landroid/webkit/DateSorter;

    invoke-direct {v0, p1}, Landroid/webkit/DateSorter;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mDateSorter:Landroid/webkit/DateSorter;

    .line 88
    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mObservers:Ljava/util/Vector;

    .line 89
    iput-object p2, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    .line 90
    const-string v0, "_id"

    invoke-interface {p2, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mIdIndex:I

    .line 91
    new-instance v0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter$ChangeObserver;

    invoke-direct {v0, p0}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter$ChangeObserver;-><init>(Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;)V

    invoke-interface {p2, v0}, Landroid/database/Cursor;->registerContentObserver(Landroid/database/ContentObserver;)V

    .line 92
    new-instance v0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter$MyDataSetObserver;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter$MyDataSetObserver;-><init>(Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter$1;)V

    invoke-interface {p2, v0}, Landroid/database/Cursor;->registerDataSetObserver(Landroid/database/DataSetObserver;)V

    .line 93
    iput p3, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mDateIndex:I

    .line 94
    invoke-direct {p0}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->buildMap()V

    .line 95
    return-void
.end method

.method static synthetic access$000(Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;)V
    .registers 1
    .param p0, "x0"    # Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;

    .prologue
    .line 42
    invoke-direct {p0}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->buildMap()V

    return-void
.end method

.method static synthetic access$100(Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;)Ljava/util/Vector;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;

    .prologue
    .line 42
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mObservers:Ljava/util/Vector;

    return-object v0
.end method

.method private buildMap()V
    .registers 9

    .prologue
    const/4 v7, 0x5

    const/4 v6, 0x0

    .line 103
    new-array v0, v7, [I

    .line 105
    .local v0, "array":[I
    const/4 v5, 0x0

    .local v5, "j":I
    :goto_5
    if-ge v5, v7, :cond_c

    .line 106
    aput v6, v0, v5

    .line 105
    add-int/lit8 v5, v5, 0x1

    goto :goto_5

    .line 108
    :cond_c
    iput v6, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mNumberOfBins:I

    .line 110
    const/4 v1, -0x1

    .line 111
    .local v1, "dateIndex":I
    iget-object v6, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v6}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v6

    if-eqz v6, :cond_4d

    iget-object v6, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v6}, Landroid/database/Cursor;->getCount()I

    move-result v6

    if-lez v6, :cond_4d

    .line 112
    :goto_1f
    iget-object v6, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v6}, Landroid/database/Cursor;->isAfterLast()Z

    move-result v6

    if-nez v6, :cond_4d

    .line 113
    iget v6, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mDateIndex:I

    invoke-virtual {p0, v6}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->getLong(I)J

    move-result-wide v2

    .line 114
    .local v2, "date":J
    iget-object v6, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mDateSorter:Landroid/webkit/DateSorter;

    invoke-virtual {v6, v2, v3}, Landroid/webkit/DateSorter;->getIndex(J)I

    move-result v4

    .line 115
    .local v4, "index":I
    if-le v4, v1, :cond_54

    .line 116
    iget v6, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mNumberOfBins:I

    add-int/lit8 v6, v6, 0x1

    iput v6, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mNumberOfBins:I

    .line 117
    const/4 v6, 0x4

    if-ne v4, v6, :cond_53

    .line 120
    iget-object v6, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v6}, Landroid/database/Cursor;->getCount()I

    move-result v6

    iget-object v7, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v7}, Landroid/database/Cursor;->getPosition()I

    move-result v7

    sub-int/2addr v6, v7

    aput v6, v0, v4

    .line 130
    .end local v2    # "date":J
    .end local v4    # "index":I
    :cond_4d
    iput-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mItemMap:[I

    .line 131
    invoke-virtual {p0}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->notifyDataSetChanged()V

    .line 132
    return-void

    .line 124
    .restart local v2    # "date":J
    .restart local v4    # "index":I
    :cond_53
    move v1, v4

    .line 126
    :cond_54
    aget v6, v0, v1

    add-int/lit8 v6, v6, 0x1

    aput v6, v0, v1

    .line 127
    iget-object v6, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v6}, Landroid/database/Cursor;->moveToNext()Z

    goto :goto_1f
.end method

.method private groupPositionToBin(I)I
    .registers 5
    .param p1, "groupPosition"    # I

    .prologue
    const/4 v2, 0x5

    .line 226
    if-ltz p1, :cond_5

    if-lt p1, v2, :cond_d

    .line 227
    :cond_5
    new-instance v1, Ljava/lang/AssertionError;

    const-string v2, "group position out of range"

    invoke-direct {v1, v2}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V

    throw v1

    .line 229
    :cond_d
    iget v1, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mNumberOfBins:I

    if-eq v2, v1, :cond_15

    iget v1, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mNumberOfBins:I

    if-nez v1, :cond_17

    :cond_15
    move v0, p1

    .line 245
    :cond_16
    return v0

    .line 238
    :cond_17
    const/4 v0, -0x1

    .line 239
    .local v0, "arrayPosition":I
    :cond_18
    :goto_18
    const/4 v1, -0x1

    if-le p1, v1, :cond_16

    .line 240
    add-int/lit8 v0, v0, 0x1

    .line 241
    iget-object v1, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mItemMap:[I

    aget v1, v1, v0

    if-eqz v1, :cond_18

    .line 242
    add-int/lit8 p1, p1, -0x1

    goto :goto_18
.end method


# virtual methods
.method public areAllItemsEnabled()Z
    .registers 2

    .prologue
    .line 321
    const/4 v0, 0x1

    return v0
.end method

.method getBlob(I)[B
    .registers 3
    .param p1, "cursorIndex"    # I

    .prologue
    .line 145
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v0, p1}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v0

    return-object v0
.end method

.method public getChild(II)Ljava/lang/Object;
    .registers 4
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I

    .prologue
    .line 347
    const/4 v0, 0x0

    return-object v0
.end method

.method public getChildId(II)J
    .registers 5
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I

    .prologue
    .line 355
    invoke-virtual {p0, p1, p2}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->moveCursorToChildPosition(II)Z

    move-result v0

    if-eqz v0, :cond_d

    .line 356
    iget v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mIdIndex:I

    invoke-virtual {p0, v0}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->getLong(I)J

    move-result-wide v0

    .line 358
    :goto_c
    return-wide v0

    :cond_d
    const-wide/16 v0, 0x0

    goto :goto_c
.end method

.method public getChildView(IIZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .registers 7
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I
    .param p3, "isLastChild"    # Z
    .param p4, "convertView"    # Landroid/view/View;
    .param p5, "parent"    # Landroid/view/ViewGroup;

    .prologue
    .line 317
    const/4 v0, 0x0

    return-object v0
.end method

.method public getChildrenCount(I)I
    .registers 4
    .param p1, "groupPosition"    # I

    .prologue
    .line 335
    :try_start_0
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mItemMap:[I

    invoke-direct {p0, p1}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->groupPositionToBin(I)I

    move-result v1

    aget v0, v0, v1
    :try_end_8
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_8} :catch_9

    .line 339
    :goto_8
    return v0

    .line 336
    :catch_9
    move-exception v0

    .line 339
    const/4 v0, 0x0

    goto :goto_8
.end method

.method public getCombinedChildId(JJ)J
    .registers 6
    .param p1, "groupId"    # J
    .param p3, "childId"    # J

    .prologue
    .line 380
    return-wide p3
.end method

.method public getCombinedGroupId(J)J
    .registers 4
    .param p1, "groupId"    # J

    .prologue
    .line 384
    return-wide p1
.end method

.method getContext()Landroid/content/Context;
    .registers 2

    .prologue
    .line 149
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method public getGroup(I)Ljava/lang/Object;
    .registers 3
    .param p1, "groupPosition"    # I

    .prologue
    .line 343
    const/4 v0, 0x0

    return-object v0
.end method

.method public getGroupCount()I
    .registers 2

    .prologue
    .line 329
    iget v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mNumberOfBins:I

    return v0
.end method

.method public getGroupId(I)J
    .registers 4
    .param p1, "groupPosition"    # I

    .prologue
    .line 351
    int-to-long v0, p1

    return-wide v0
.end method

.method public getGroupView(IZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .registers 12
    .param p1, "groupPosition"    # I
    .param p2, "isExpanded"    # Z
    .param p3, "convertView"    # Landroid/view/View;
    .param p4, "parent"    # Landroid/view/ViewGroup;

    .prologue
    const/4 v6, 0x0

    .line 294
    if-eqz p3, :cond_7

    instance-of v4, p3, Landroid/view/View;

    if-nez v4, :cond_31

    .line 295
    :cond_7
    iget-object v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mContext:Landroid/content/Context;

    invoke-static {v4}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    .line 296
    .local v0, "factory":Landroid/view/LayoutInflater;
    sget v4, Lcom/zuimeia_sdk_download/downloadprovider/R$layout;->zuimeia_sdk_download_list_group_header:I

    const/4 v5, 0x0

    invoke-virtual {v0, v4, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    .line 300
    .end local v0    # "factory":Landroid/view/LayoutInflater;
    .local v3, "view":Landroid/view/View;
    :goto_14
    sget v4, Lcom/zuimeia_sdk_download/downloadprovider/R$id;->list_group_text:I

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 302
    .local v1, "item":Landroid/widget/TextView;
    :try_start_1c
    iget-object v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mDateSorter:Landroid/webkit/DateSorter;

    invoke-direct {p0, p1}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->groupPositionToBin(I)I

    move-result v5

    invoke-virtual {v4, v5}, Landroid/webkit/DateSorter;->getLabel(I)Ljava/lang/String;

    move-result-object v2

    .line 303
    .local v2, "label":Ljava/lang/String;
    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
    :try_end_29
    .catch Ljava/lang/Throwable; {:try_start_1c .. :try_end_29} :catch_39

    .line 307
    .end local v2    # "label":Ljava/lang/String;
    :goto_29
    if-eqz p2, :cond_33

    .line 308
    sget v4, Lcom/zuimeia_sdk_download/downloadprovider/R$drawable;->zuimeia_sdk_download_icon_dropdown:I

    invoke-virtual {v1, v4, v6, v6, v6}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(IIII)V

    .line 313
    :goto_30
    return-object v3

    .line 298
    .end local v1    # "item":Landroid/widget/TextView;
    .end local v3    # "view":Landroid/view/View;
    :cond_31
    move-object v3, p3

    .restart local v3    # "view":Landroid/view/View;
    goto :goto_14

    .line 310
    .restart local v1    # "item":Landroid/widget/TextView;
    :cond_33
    sget v4, Lcom/zuimeia_sdk_download/downloadprovider/R$drawable;->zuimeia_sdk_download_icon_dropup:I

    invoke-virtual {v1, v4, v6, v6, v6}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(IIII)V

    goto :goto_30

    .line 304
    :catch_39
    move-exception v4

    goto :goto_29
.end method

.method getInt(I)I
    .registers 3
    .param p1, "cursorIndex"    # I

    .prologue
    .line 163
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v0, p1}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    return v0
.end method

.method getLong(I)J
    .registers 4
    .param p1, "cursorIndex"    # I

    .prologue
    .line 171
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v0, p1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    return-wide v0
.end method

.method getString(I)Ljava/lang/String;
    .registers 3
    .param p1, "cursorIndex"    # I

    .prologue
    .line 185
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v0, p1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method groupFromChildId(J)I
    .registers 10
    .param p1, "childId"    # J

    .prologue
    .line 196
    const/4 v1, -0x1

    .line 197
    .local v1, "group":I
    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v3}, Landroid/database/Cursor;->moveToFirst()Z

    :goto_6
    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v3}, Landroid/database/Cursor;->isAfterLast()Z

    move-result v3

    if-nez v3, :cond_3f

    .line 198
    iget v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mIdIndex:I

    invoke-virtual {p0, v3}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->getLong(I)J

    move-result-wide v4

    cmp-long v3, v4, p1

    if-nez v3, :cond_39

    .line 199
    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mDateSorter:Landroid/webkit/DateSorter;

    iget v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mDateIndex:I

    invoke-virtual {p0, v4}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->getLong(I)J

    move-result-wide v4

    invoke-virtual {v3, v4, v5}, Landroid/webkit/DateSorter;->getIndex(J)I

    move-result v0

    .line 202
    .local v0, "bin":I
    const/4 v3, 0x5

    iget v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mNumberOfBins:I

    if-ne v3, v4, :cond_2a

    .line 213
    .end local v0    # "bin":I
    :goto_29
    return v0

    .line 205
    .restart local v0    # "bin":I
    :cond_2a
    const/4 v1, 0x0

    .line 206
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_2c
    if-ge v2, v0, :cond_3f

    .line 207
    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mItemMap:[I

    aget v3, v3, v2

    if-eqz v3, :cond_36

    .line 208
    add-int/lit8 v1, v1, 0x1

    .line 206
    :cond_36
    add-int/lit8 v2, v2, 0x1

    goto :goto_2c

    .line 197
    .end local v0    # "bin":I
    .end local v2    # "i":I
    :cond_39
    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v3}, Landroid/database/Cursor;->moveToNext()Z

    goto :goto_6

    :cond_3f
    move v0, v1

    .line 213
    goto :goto_29
.end method

.method public hasStableIds()Z
    .registers 2

    .prologue
    .line 362
    const/4 v0, 0x1

    return v0
.end method

.method public isChildSelectable(II)Z
    .registers 4
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I

    .prologue
    .line 325
    const/4 v0, 0x1

    return v0
.end method

.method public isEmpty()Z
    .registers 2

    .prologue
    .line 388
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->isClosed()Z

    move-result v0

    if-nez v0, :cond_10

    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I

    move-result v0

    if-nez v0, :cond_12

    :cond_10
    const/4 v0, 0x1

    :goto_11
    return v0

    :cond_12
    const/4 v0, 0x0

    goto :goto_11
.end method

.method moveCursorToChildPosition(II)Z
    .registers 6
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I

    .prologue
    .line 275
    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v2}, Landroid/database/Cursor;->isClosed()Z

    move-result v2

    if-eqz v2, :cond_a

    .line 276
    const/4 v2, 0x0

    .line 282
    :goto_9
    return v2

    .line 277
    :cond_a
    invoke-direct {p0, p1}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->groupPositionToBin(I)I

    move-result p1

    .line 278
    move v1, p2

    .line 279
    .local v1, "index":I
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_10
    if-ge v0, p1, :cond_1a

    .line 280
    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mItemMap:[I

    aget v2, v2, v0

    add-int/2addr v1, v2

    .line 279
    add-int/lit8 v0, v0, 0x1

    goto :goto_10

    .line 282
    :cond_1a
    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v2, v1}, Landroid/database/Cursor;->moveToPosition(I)Z

    move-result v2

    goto :goto_9
.end method

.method moveCursorToPackedChildPosition(J)Z
    .registers 8
    .param p1, "packedPosition"    # J

    .prologue
    .line 256
    invoke-static {p1, p2}, Landroid/widget/ExpandableListView;->getPackedPositionType(J)I

    move-result v2

    const/4 v3, 0x1

    if-eq v2, v3, :cond_9

    .line 257
    const/4 v2, 0x0

    .line 261
    :goto_8
    return v2

    .line 259
    :cond_9
    invoke-static {p1, p2}, Landroid/widget/ExpandableListView;->getPackedPositionGroup(J)I

    move-result v1

    .line 260
    .local v1, "groupPosition":I
    invoke-static {p1, p2}, Landroid/widget/ExpandableListView;->getPackedPositionChild(J)I

    move-result v0

    .line 261
    .local v0, "childPosition":I
    invoke-virtual {p0, v1, v0}, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->moveCursorToChildPosition(II)Z

    move-result v2

    goto :goto_8
.end method

.method public onGroupCollapsed(I)V
    .registers 2
    .param p1, "groupPosition"    # I

    .prologue
    .line 377
    return-void
.end method

.method public onGroupExpanded(I)V
    .registers 2
    .param p1, "groupPosition"    # I

    .prologue
    .line 374
    return-void
.end method

.method refreshData()V
    .registers 2

    .prologue
    .line 286
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->isClosed()Z

    move-result v0

    if-eqz v0, :cond_9

    .line 290
    :goto_8
    return-void

    .line 289
    :cond_9
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/ui/DateSortedExpandableListAdapter;->mCursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->requery()Z

    goto :goto_8
.end method

.method public registerDataSetObserver(Landroid/database/DataSetObserver;)V
    .registers 2
    .param p1, "observer"    # Landroid/database/DataSetObserver;

    .prologue
    .line 367
    return-void
.end method

.method public unregisterDataSetObserver(Landroid/database/DataSetObserver;)V
    .registers 2
    .param p1, "observer"    # Landroid/database/DataSetObserver;

    .prologue
    .line 371
    return-void
.end method
